import {createWebHistory, createRouter} from 'vue-router'
// import leftMenu from "@/components/leftMenu.vue";
// import TodoList from "@/views/TodoList.vue";
import LoginView from "@/views/LoginView.vue";
import routerlndex from "@/views/routerlndex.vue";




const routes = [
    // { path: '/item', component: item },
    // { path: '/todolist',
    //   component: todolist,
    //   children:[
    //       { path: '/t1', component: t1},
    //       { path: '/t2',component: t2}
    //   ]
    // },
    // {
    //     path:'/routerlindex',
    //     component:routerlndex,
    //     children:[
    //         {
    //             path: '/leftMenu',
    //             component: leftMenu
    //         }
    //     ]
    // },
    // {path:'/TodoList' ,component:TodoList}
    {
        path:'/login',
        name: 'login',
        component:LoginView
    },{
        path:'/',
        name: 'login',
        component:LoginView
    },
    {
        path: '/routerlndex',
        name: 'routerlndex',
        component:routerlndex }

]

 const router =createRouter({
    history: createWebHistory(),
    routes,
})
export default router
